/*
 * progress_display.cpp
 *
 *  Created on: Sep 28, 2012
 *      Author: liuyu
 */

#include <boost/progress.hpp>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>

using namespace std;
using namespace boost;

int main () {
	vector<string> svec(100);
	ofstream of("text.txt");

	for ( int i = 0; i != 100; ++i ) {
		stringstream os;
		os << i;
		svec[i] = os.str();
	}

	progress_display pd( svec.size() );
	for ( vector<string>::iterator it = svec.begin();
			it != svec.end();
			++it ) {
		of << *it << endl;
		++pd;
	}
}


